package com.bl.student.dao.repository;

import com.bl.student.dao.model.TeacherEntity;
import com.bl.student.dao.model.UserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by yujingyi on 2018/1/6.
 */
public interface UserRepository extends JpaRepository<UserEntity, Integer> {
    List<UserEntity> findByMobile(String mobile);

    List<UserEntity> findByAccount(String account);

    List<UserEntity> findByNickname(String nickName );

    List<UserEntity> findByNicknameLike(String nickName );

    List<UserEntity> findByMobileLike(String mobile );
}
